/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.tkgarment.system.dao;

import com.tkgarment.system.domain.Hospital;
import com.tkgarment.system.factory.DAOFactory;
import com.tkgarment.system.inf.IDAO;
import java.util.List;

/**
 *
 * @author zraj
 */
public class HospitalDAO extends AbstractDAO implements IDAO<Hospital, Integer> {

    @Override
    public List<Hospital> getAll() throws Exception {
        String sql = "";
        if (this.getCon() == null) {
            this.setCon(DAOFactory.creatConnection());
        }
        return null;
    }

    @Override
    public int updateSingle(Hospital t, Integer id) throws Exception {
        String sql = "";
        if (this.getCon() == null) {
            this.setCon(DAOFactory.creatConnection());
        }
        return 0;
    }

    @Override
    public int deleteSingle(Hospital t) throws Exception {
        String sql = "";
        if (this.getCon() == null) {
            this.setCon(DAOFactory.creatConnection());
        }
        return 0;
    }

    @Override
    public int insertSingle(Hospital t) throws Exception {
        String sql = "";
        if (this.getCon() == null) {
            this.setCon(DAOFactory.creatConnection());
        }
        return 0;
    }

    @Override
    public Hospital getById(Integer id) throws Exception {
        String sql = "";
        if (this.getCon() == null) {
            this.setCon(DAOFactory.creatConnection());
        }
        return null;
    }
    
}
